package architect.design.patterns.structural.facade;

/**
 * 支付实现
 *
 * @author guanxin
 * @date 2018/5/5 16:25
 */

public class PaymentGatewayManager implements IPaymentGateway {

    @Override
    public boolean verifyCardDetails(String cardNo) {
        String out = "Card# " + cardNo +
                " has been verified and is accepted.";
        System.out.println(out);
        return true;
    }

    @Override
    public boolean processPayment(String cardNo, float cost) {
        String out = "Card# " + cardNo +
                " is used to make a payment of " + cost + ".";
        System.out.println(out);
        return true;
    }
}
